home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Miscellaneous / gdbm / Makefile < prev    next >
Encoding:
Makefile  |  1992-12-16  |  3.5 KB  |  132 lines  |  [TEXT/????]

  1. #
  2. # Makefile for gdbm on the Macintosh.
  3. #
  4.  
  5. OURLIBS =    alloca.c.o                        ∂
  6.         getopt.c.o
  7.         
  8. LIBS    =     {CLibraries}GUSI_F.o                    ∂
  9.         {CLibraries}StdCLib.o                     ∂
  10.         {Libraries}Runtime.o                     ∂
  11.         {Libraries}Interface.o                     ∂
  12.         {Libraries}ToolLibs.o                    ∂
  13.         alloca.c.o                        ∂
  14.         getopt.c.o
  15.         
  16. DBM_CF = dbminit.c delete.c fetch.c store.c seq.c
  17.  
  18. NDBM_CF = dbmopen.c dbmdelete.c dbmfetch.c dbmstore.c dbmseq.c ∂
  19.     dbmclose.c dbmdirfno.c dbmpagfno.c
  20.  
  21. GDBM_CF = gdbmopen.c gdbmdelete.c gdbmfetch.c  gdbmstore.c gdbmclose.c ∂
  22.     gdbmreorg.c gdbmseq.c ∂
  23.     bucket.c falloc.c findkey.c global.c hash.c update.c version.c
  24.  
  25. HFILES = gdbmdefs.h extern.h gdbmerrno.h systems.h dbm.h ndbm.h gdbmconst.h
  26.  
  27. MSCFILES = COPYING ChangeLog Makefile README README.MAC gdbm.proto conv2gdbm.c
  28.  
  29. TESTFILES = testdbm.c testndbm.c testgdbm.c
  30.  
  31.  
  32. DBM_OF = dbminit.c.o delete.c.o fetch.c.o store.c.o seq.c.o
  33.  
  34. NDBM_OF = dbmopen.c.o dbmdelete.c.o dbmfetch.c.o dbmstore.c.o dbmseq.c.o ∂
  35.     dbmclose.c.o dbmdirfno.c.o dbmpagfno.c.o
  36.  
  37. GDBM_OF = gdbmopen.c.o gdbmdelete.c.o gdbmfetch.c.o  gdbmstore.c.o gdbmclose.c.o ∂
  38.     gdbmreorg.c.o gdbmseq.c.o ∂
  39.     bucket.c.o falloc.c.o findkey.c.o global.c.o hash.c.o update.c.o version.c.o
  40.  
  41. allƒ    allgdbm alldbm
  42.  
  43. alldbmƒ tdbm tndbm
  44.  
  45. allgdbmƒ gdbm.o testgdbm testdbm testndbm
  46.  
  47. gdbm.oƒ    {DBM_OF} {NDBM_OF} {GDBM_OF} gdbm.h
  48.     Lib -sym on -o gdbm.o {DBM_OF} {NDBM_OF} {GDBM_OF}
  49.     
  50. gdbm.hƒ    gdbm.proto gdbmerrno.h
  51.     duplicate -y gdbm.proto gdbm.h
  52.     perl -ne 'print if (/_/);' gdbmerrno.h >> gdbm.h
  53.  
  54. testgdbmƒ testgdbm.c.o gdbm.o {OURLIBS}
  55.     Link -t MPST -c 'MPS ' -o testgdbm testgdbm.c.o gdbm.o {LIBS}
  56.  
  57. testdbmƒ testdbm.c.o gdbm.o {OURLIBS}
  58.     Link -t MPST -c 'MPS ' -o testdbm testdbm.c.o gdbm.o {LIBS}
  59.  
  60. tdbmƒ testdbm.c.o gdbm.o {OURLIBS}
  61.     Link -t MPST -c 'MPS ' -o tdbm testdbm.c.o gdbm.o {LIBS}
  62.  
  63. testndbm.c.oƒ testndbm.c
  64.     C -DGNU testndbm.c
  65.  
  66. testndbmƒ testndbm.c.o gdbm.o {OURLIBS}
  67.     Link -t MPST -c 'MPS ' -o testndbm testndbm.c.o gdbm.o {LIBS}
  68.  
  69. tndbm.c.oƒ testndbm.c
  70.     Duplicate -y testndbm.c tndbm.c
  71.     C {COptions} tndbm.c
  72.     Delete -y tndbm.c
  73.  
  74. tndbmƒ tndbm.c.o gdbm.o {OURLIBS}
  75.     Link -t MPST -c 'MPS ' -o tndbm tndbm.c.o gdbm.o {LIBS}
  76.  
  77. cleanƒ
  78.     delete -y {DBM_OF} {NDBM_OF} {GDBM_OF} gdbm.h gdbm.o ∂
  79.     testdbm testndbm testgdbm testdbm.c.o testndbm.c.o testgdbm.c.o ∂
  80.     tdbm tndbm tndbm.c.o tndbm.c conv2gdbm conv2gdbm.c.o
  81.  
  82. installƒ gdbm.o gdbm.h
  83.     Duplicate -y gdbm.o {CLibraries}
  84.     Duplicate -y gdbm.h {CIncludes}
  85.  
  86. distƒ
  87.  
  88. # dbm files
  89. dbminit.c.o    ƒ    gdbmdefs.h extern.h gdbmerrno.h
  90. delete.c.o    ƒ    gdbmdefs.h extern.h
  91. fetch.c.o    ƒ    gdbmdefs.h extern.h
  92. store.c.o    ƒ    gdbmdefs.h extern.h
  93. seq.c.o        ƒ    gdbmdefs.h extern.h
  94.  
  95. # ndbm files
  96. dbmopen.c.o    ƒ    gdbmdefs.h extern.h gdbmerrno.h
  97. dbmdelete.c.o    ƒ    gdbmdefs.h extern.h
  98. dbmfetch.c.o    ƒ    gdbmdefs.h extern.h
  99. dbmstore.c.o    ƒ    gdbmdefs.h extern.h
  100. dbmseq.c.o    ƒ    gdbmdefs.h extern.h
  101. dbmclose.c.o    ƒ    gdbmdefs.h systems.h
  102. dbmpagfno.c.o    ƒ    gdbmdefs.h extern.h
  103. dbmdirfno.c.o    ƒ    gdbmdefs.h extern.h
  104.  
  105.  
  106. # gdbm files
  107. gdbmclose.c.o    ƒ    gdbmdefs.h 
  108. gdbmdelete.c.o    ƒ    gdbmdefs.h gdbmerrno.h 
  109. gdbmfetch.c.o    ƒ    gdbmdefs.h gdbmerrno.h 
  110. gdbmopen.c.o    ƒ    gdbmdefs.h gdbmerrno.h 
  111. gdbmreorg.c.o    ƒ    gdbmdefs.h gdbmerrno.h extern.h
  112. gdbmseq.c.o    ƒ    gdbmdefs.h 
  113. gdbmstore.c.o    ƒ    gdbmdefs.h gdbmerrno.h 
  114.  
  115. # gdbm support files
  116. bucket.c.o    ƒ    gdbmdefs.h
  117. falloc.c.o    ƒ    gdbmdefs.h
  118. findkey.c.o    ƒ    gdbmdefs.h
  119. global.c.o    ƒ    gdbmdefs.h gdbmerrno.h 
  120. hash.c.o    ƒ    gdbmdefs.h
  121. update.c.o    ƒ    gdbmdefs.h
  122. version.c.o    ƒ
  123. extern.h    ƒ
  124. gdbmdefs.h    ƒ    gdbmconst.h systems.h
  125.     setfile -m . gdbmdefs.h
  126.  
  127. # other programs
  128. testgdbm.c.o    ƒ    gdbmdefs.h extern.h gdbmerrno.h systems.h
  129. testdbm.c.o    ƒ
  130. testndbm.c.o    ƒ    ndbm.h
  131. tdbm.c.o    ƒ
  132.